package com.dynamic.mybatis.core.exceptions;

import com.dynamic.mybatis.core.metadata.MappedStatementMetaField;

/**
 * @Description
 * @Author xs
 * @Date 2023/4/25 13:47
 */
public class MybatisFieldValidateException extends RuntimeException {
    MappedStatementMetaField field;

    public MybatisFieldValidateException(MappedStatementMetaField field, String message) {
        super(String.format(message, field.getField()));
        this.field = field;
    }

    public MybatisFieldValidateException(String message, Throwable cause) {
        super(message, cause);
    }

    public MybatisFieldValidateException(Throwable cause) {
        super(cause);
    }
}